<!-- 耗材申领 -->
<template>
  <div class="main-content-container">
    <Tabs :data="tabsName" class="tabcss" @change="handleClick" />
    <ApplyDrug v-if="tabsVal===1" />
    <ApplyMaterial v-if="tabsVal===2" />
  </div>
</template>
<script>
import Tabs from "@/components/SearchSelection";
import ApplyDrug from "./applyDrug";
import ApplyMaterial from "./applyMaterial";
import "@/assets/styles/common.scss";
export default {
  name: "Department",
  components: {
    Tabs,
    ApplyDrug,
    ApplyMaterial,
  },
  data() {
    return {
      tabsName: [
        { id: 1, name: "治疗项目" },
        { id: 2, name: "病历管理" },
      ],
      tabsVal: 1,
    };
  },
  methods: {
    handleClick(tab) {
      this.tabsVal = tab;
    },
  },
};
</script>
<style lang="scss" scoped>
</style>
